package cn.wolfcode.education.mapper;

import cn.wolfcode.education.domain.School;
import cn.wolfcode.education.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SchoolMapper {

    int insert(School record);

    List<School> selectAll();

    int queryForCount(QueryObject qo);

    List<School> queryForList(QueryObject qo);

    School getSchoolById(Long id);

    void update(School school);

    void updateFollowStateToRemove(@Param("id") Long id, @Param("staticRemove") int staticRemove);

    void updateCurrent(School school);

    void updateState(@Param("id") Long id, @Param("state") boolean state);

    void updateHands(@Param("id") Long id, @Param("hands") boolean hands);

    void updateSchoolSpeechTotal(@Param("id") Long id, @Param("SpeechTotal") int SpeechTotal);
}